package com.bz.service.socket;

import com.bz.model.ChatMessage;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface ChatMessageRepository extends ElasticsearchRepository<ChatMessage, String> {
    Page<ChatMessage> findByRoomId(String roomId, PageRequest pageRequest);
}